package cn.com.aiouyi.controller.admin;

import javax.annotation.Resource;

import cn.com.aiouyi.entity.Photo;
import cn.com.aiouyi.entity.PhotoPosition;
import cn.com.aiouyi.page.Criterion;
import cn.com.aiouyi.page.Filter;
import cn.com.aiouyi.page.Page;
import cn.com.aiouyi.page.Pageable;
import cn.com.aiouyi.service.PhotoService;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import cn.com.aiouyi.entity.Member;
import cn.com.aiouyi.service.MemberService;

import java.util.ArrayList;
import java.util.List;

/**
 * Controller - 首页
 * @author hanson
 *
 */
@Controller("adminIndexController")
@RequestMapping("/admin/index")
public class IndexController extends BaseController{

	@Resource(name = "memberServiceImpl")
	private MemberService memberService;
	@GetMapping
	public String index(){
		/*Member member = new Member();
		member.setUsername("hanson");
		member.setPassword("123456");
		memberService.save(member);*/
		return "admin/index/index";
	}
	
	@GetMapping("/welcome")
	public String welcome(){
		return "admin/index/welcome";
	}
}
